package com.zxl.grocery.modular.crawler.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zxl.grocery.modular.crawler.entity.CrawlerNovel;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 小说表 Mapper 接口
 * </p>
 *
 * @author zxl
 * @since 2017-08-31
 */
public interface CrawlerNovelMapper extends BaseMapper<CrawlerNovel> {
    List<String> getAllLinksByTypeId(@Param("typeId") Integer typeId);

    List<Map<String, Object>> getAllNovelList(@Param("page") Page page, @Param("beginTime") String beginTime, @Param("endTime") String endTime,
                                              @Param("snovelName") String snovelName, @Param("snovelAuthor") String snovelAuthor, @Param("schapter") String schapter,
                                              @Param("sstatus") Integer sstatus, @Param("splacedTop") Integer splacedTop, @Param("srecommend") Integer srecommend,
                                              @Param("ssourcesId") Integer ssourcesId);
}